All Questions
120 questions
0votes
1answer
46views
Is this the right approach for my project?
This is my first Raspberry PI project. I'm trying it for fun and personal use for my home. I want to mount a device that detects a face from a short distance (maybe 1m and less) and initialize an API ...
0votes
0answers
60views
Rotary encoder issues
I currently have a 600 p/r encoder hooked up to a pi 4. Seems to work ok, but due to the pi OS (bookworm) it usually misses some counts. From what I read, it seems that there are 2 possible ways to ...
0votes
1answer
87views
Troubleshooting Temp/RH Sensor with RPi
I am working off of a Raspberry Pi 4B. I have recently connected this temperature/RH sensor, but I am having trouble to with the python code. This is the datasheet for the sensor (Pg. 11-18 are most ...
0votes
1answer
196views
AS5600 encoder is not reading on Raspberry Pi 4
I'm trying to read the stepper motor angle using the AS5600 magnetic position encoder. I'm using Raspberry Pi 4 and the pinout is the following: VCC to 3.3V , GND to Ground ,SDA to GPIO2 (Pin 3) , SCL ...
0votes
2answers
573views
BME280 sensor: OSError [Errno 5]
I recently bought a Raspberry Pi 4B along with a BME280 T/P/humidity sensor. I use the bme280 and smbus2 Python libraries to interface with the sensor. For a while it worked pretty well, but yesterday ...
-1votes
1answer
195views
Multiprocessing to speed up data acquisition for I2C devices
Here's my situation: I have four FDC1004 devices that I want to have connected to an array of 64 electrodes through four ADG1206 16:1 multiplexers. Each device is slaved to a pi4 using separate I2C ...
2votes
2answers
740views
HC-SR04 sensor's ECHO pin stuck on HIGH
I have a raspberry pi 4 and a HC-SR04 ultrasonic distance sensor. I want to use it in a raspberry-pi based robot. The other features look fine, the robot can move, et cetera. But my code for the ...
1vote
1answer
189views
Using I2C/SMBus with Sense HAT and Output stays the same
I have a problem while reading the my lsm9ds1 acceleratorsensor registers . It always displays the same values. My setup is a raspberry pi 4 and the sense HAT which has this sensor integrated. I dont ...
1vote
2answers
476views
hc-sr501 goes high every minute
So I bought three HC-SR501 PIR and all of them keep trigging (high) every single 60 second on the dot. I don't know what I am doing wrong. The PIR does detect motion when a person is moving but it ...
0votes
2answers
663views
GPIO detects rising edge but does not change status to 1 [closed]
I am really confused: I have a lightbarrier connected over an optocoupler (ACPL-827) with my Raspberry Pi. When the lightbarrier gets triggered (detects a rising edge), it calls the scan-function. ...
2votes
1answer
3kviews
How to PID control a heater with SSR, Raspberry Pi and python
I would like to PID control the temperature of a water bath using a RaspberryPi4, a solid state relay (SSR) and a heater (200W, 230VAC) using python. The IVMech library seems a good starting point. As ...
0votes
1answer
177views
How to aggregate time-synced data from one RPi to another over bluetooth
I am currently working on a landslide-detection project coded in Python for a research group. At present we have two different sets of sensors running on two different RPis. One RPi has a strain gauge ...
0votes
3answers
114views
Trying to run a python program on boot - error file location?
I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
0votes
1answer
246views
Using I2C with MMC34160PJ magnetometer
I'm trying to read data from the MMC34160PJ magnetometer using the Raspberry Pi 4. However, I'm pretty stuck as to how I can do it as there's seemingly no example code or library for it. I have been ...
1vote
1answer
70views
I2C Interfacing with HIH6130
I'm trying to read data from sparkfun's HIH6130 Breakout for measuring humidity and temp data. Following this instructable (though without the i2c shield for the pi), the provided python code just ...